package org.ruoyi.data.domain.bo;


import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.common.mybatis.core.domain.BaseEntity;
import org.ruoyi.data.domain.DataTableColumn;

/**
 * 数据字段业务对象 data_table_column
 *
 * @author bz_huaYal9146
 * @date 2025-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DataTableColumn.class, reverseConvertGenerate = false)
public class DataTableColumnBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 数据表ID
     */
    private Long dataTableId;

    /**
     * 字段名
     */
    private String dataColumnName;

    /**
     * 字段中文名
     */
    private String dataColumnCn;

    /**
     * 排序
     */
    private Long dataSort;


}
